<body>
<div class="path fn-clear"><span class="fb">首页</span><a href="{url('module/index')}">模型管理</a></div>
<div class="button-nav">
    <a href="###" url="{url('module/add')}"  title="增加模型" class="button button-blank win"><i class="iconfont">&#xF023;</i> 增加模型</a>
</div>
<div class="m5">
<table class="table table-bordered table-striped" width="100%">
<thead><tr><th class="fn-tac w20">#</th><th class="fn-tac w120">数据库表名</th><th class="tal">模型名称</th><th class="fn-tac w80">模型特性</th><th class="fn-tac w120">更新时间</th><th class="fn-tac w150">操作</th></tr></thead>
<tbody>  
{loop $list $vo}
<tr>
    <td class="fn-tac w20">{$vo['id']}</td>
    <td class="fn-tac w120">{$vo['tables']}</td>
    <td><a href="{url('module/field',array(id=>$vo['id']))}">{$vo['name']}</a></td>
    <td class="fn-tac w80">{if $vo['type'] == 1}<span title="附加扩展:作为"资源模型"的扩展模型">附加扩展</span>{elseif $vo['type'] == 2}<span title="栏目模型:栏目的扩展模型">栏目模型</span>{else}<span title="资源模型:绑定栏目的主要模型对象">资源模型</span>{/if}</td>
    <td class="fn-tac w120">{date('Y-m-d H:i:s',$vo['uptime'])}</td>
    <td class="fn-tac w150 tip">
<a href="{url('module/field',array(id=>$vo['id']))}">管理字段</a>/
<a href="###" title="编辑模型" class="win" url="{url('module/edit',array(id=>$vo['id']))}">编辑</a>/
<a href="###" title="删除模型" class="del" url="{url('module/index',array(id=>$vo['id'],act=>'del'))}">删除</a> 
    </td>
</tr>
{/loop}
</tbody>
</table>
</div>
<script type="text/javascript">
Do('base','Dialog',function(){
  $(".win").click(function(){
    $(this).cpWindows();
  });
  $('.del').click(function(){
    $(this).cpDelete();
  });
})
</script>
</body>